package org.csu.xzypetstore.persistence;

import org.csu.xzypetstore.domain.Product;
import org.springframework.stereotype.Repository;

import java.sql.PreparedStatement;
import java.util.List;

@Repository
public interface ProductMapper {
    List<Product> getProductListByCategory(String categoryId);
    Product getProduct(String productId);
    List<Product> searchProductList(String keyword);
    //新增
    void addProduct(Product product);
    //删除
    void delProduct(String productId);
    //更新
    void updProduct(Product product);
}
